package com.ruoyi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 对象 adv_ordersdetail
 *
 * @author ruoyi
 * @date 2024-05-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AdvOrdersdetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    private Long advOrdersdetailId;
    @Excel(name = "订单标识")
    private Long advOrdersId;
    private Long advProductsId;
    private Long ordersNum;
    private Long syncFlag;

    // 订单表的字段
    @Excel(name = "订单编号")
    private String ordersno;
    @Excel(name = "关联的订单编号")
    private String refOrdersno;
    @Excel(name = "订单日期")
    private String advOrdersdate;
    @Excel(name = "订单总金额")
    private Double ordersamount;
    @Excel(name = "快递编号")
    private String delivesno;
    @Excel(name = "物流公司编号")
    private String wlcmpno;
    @Excel(name = "订单状态(1未支付，2已支付，3已发货，4已收货，5退款中，6已退款，7退换货中，8已完成)")
    private Long orderStatus;
    @Excel(name = "订单备注")
    private String remark;

    @Excel(name = "出库时间")
    private String outstockDate;

    // 会员表的字段
    private Long advMembersId;
    @Excel(name = "会员名称")
    private String memberName;
    @Excel(name = "会员账号")
    private String memberAccount;
    private String weOpenid;

    // 产品表的字段

    private String productName;
    private String productDesc;
    private String productType;
    private String productModel;
    private String productPrice;  //5.31新增

    private String productUrl;
    private String productImage;

    // 添加模糊查询的订单编号属性
    private String dnoOrdersno;
    private String dnoOrdersnoTwo;


    public AdvOrdersdetail(Long advOrdersdetailId, Long advOrdersId, Long advProductsId, Long ordersNum) {
        this.advOrdersdetailId = advOrdersdetailId;
        this.advOrdersId = advOrdersId;
        this.advProductsId = advProductsId;
        this.ordersNum = ordersNum;
    }
}
